package com.hd.pzhwlxt.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hd.pzhwlxt.mapper.BuildInfoMapper;
import com.hd.pzhwlxt.mapper.NoticeMapper;
import com.hd.pzhwlxt.pojo.BuildInfo;
import com.hd.pzhwlxt.pojo.Notice;
import com.hd.pzhwlxt.service.BuildInfoService;
import com.hd.pzhwlxt.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice> implements NoticeService {
    @Autowired
    NoticeMapper noticeMapper;

    @Override
    public Page<Notice> getAllNotice(Integer pageNum, Integer pageSize) {
        return noticeMapper.selectPage(new Page<Notice>(pageNum, pageSize), null);
    }
}